/* Mobile-specific enhancements for ElectricShock Racing */

/* Touch-friendly controls */
@media (max-width: 768px) {
    /* Larger touch targets */
    button {
        min-height: 48px;
        font-size: 16px;
    }
    
    input[type="range"] {
        height: 48px;
        margin: 10px 0;
    }
    
    input[type="number"] {
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Better spacing on mobile */
    .container {
        margin: 0;
        padding: 16px;
    }
    
    /* Stack controls vertically on small screens */
    .slider-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .slider-container input[type="range"] {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    /* Camera controls grid adjustment */
    .grid-cols-3 button {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    /* Video feed responsive */
    #cameraFeed {
        width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
    
    .bg-white {
        background-color: #1f2937 !important;
        color: #f9fafb;
    }
    
    .bg-gray-50 {
        background-color: #374151 !important;
        color: #f9fafb;
    }
    
    .text-gray-800 {
        color: #f9fafb !important;
    }
    
    .text-gray-600 {
        color: #d1d5db !important;
    }
    
    .border-gray-300 {
        border-color: #4b5563 !important;
    }
    
    input[type="number"], input[type="range"] {
        background-color: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .slider::-webkit-slider-thumb {
        border: 2px solid #000;
    }
    
    .slider::-moz-range-thumb {
        border: 2px solid #000;
    }
    
    button {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-pulse {
        animation: none;
    }
}
